package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.PcbaDeviceParamType;
import com.sailfish.springbootdemo.pojo.db1.TechDeviceParamType;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface TechDeviceParamTypeService {

    /**
     * 根据设备类型查询
     *
     * @param pcbaDeviceTypeId
     * @return
     */
    List<TechDeviceParamType> getTechDeviceParamTypeByPcbaDeviceTypeId(HttpServletRequest request, Integer pcbaDeviceTypeId, String searchValue);

    /**
     * 删除
     *
     * @param techDeviceParamTypeId
     * @return
     */
    Result deleteTechDeviceParamType(Integer techDeviceParamTypeId);

    /**
     * 新增或者修改
     *
     * @param techDeviceParamType
     * @return
     */
    Result addOrUpdateTechDeviceParamType(String mode, TechDeviceParamType techDeviceParamType);
}
